import re

content = """
寻隐者12345@qq.com不遇
朝代: abc652gf#hjk.com唐代
松下问python666@163.com童子
言师采python-abc@163.com药去
只在此python_ant-666@sina.net山中
云深不知处
"""

pattern = re.compile("""
    [a-zA-Z0-9_-]+  # 修正了此处的拼写错误（Z大写）
    @
    [a-zA-Z0-9]+
    \.
    [a-zA-Z]{2,4}
""", re.VERBOSE)

results = pattern.findall(content)  # 修正了调用方式

for result in results:
    print(result)